<?php

namespace app\index\controller;

use app\common\controller\Frontend;

class Landlord extends Frontend
{
    protected $noNeedLogin = [];
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
        //读取当前用户
        $this->assign("user",$this->auth->getUser());

        //读取swoole配置
        $swoole_url = config("swoole.swoole_host").":".config("swoole.swoole_port");
        $this->assign("swoole_url",$swoole_url);
        return $this->view->fetch();
    }

}
